]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Show in an idle on clutter key focus changes
authorRui Matos <tiagomatos@gmail.com>
Tue, 30 Oct 2012 15:46:18 +0000 (16:46 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Dec 2012 18:00:15 +0000 (13:00 -0500)
commitf07fee538d35695ef24024eb37d8799e2e3744bd
tree0ddc05240227e0b8ff187f728c759c01afc121f9
parentfa1420b3847f996a838b8aca740c38eee2698bf1
keyboard: Show in an idle on clutter key focus changes

It's common to do actor.grab_key_focus() before the actor is mapped
which means that we can't reliably determine where the actor is at
notify::key-focus time and thus might end up showing the keyboard on
the wrong monitor.

This is happening, in particular, with the run dialog. Delaying until
we hit the main loop allows us to know where the actor finally is
before showing the OSK.

https://bugzilla.gnome.org/show_bug.cgi?id=685856
js/ui/keyboard.js